/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const Router = {
  path: '/club',
  component: Layout,
  name: 'ClubManage',
  alwaysShow: true,
  meta: {
    title: '社团',
    icon: 'el-icon-soccer'
  },
  children: [
    {
      name: 'ClubList',
      path: 'club_list',
      component: () => import('@/views/club/allClub/index.vue'),
      meta: {
        title: '所有社团',
        icon: 'yuan-red'
      }
    },
    {
      name: 'MyClub',
      path: 'my_club',
      component: () => import('@/views/club/clubManage/index.vue'),
      meta: {
        title: '社团管理',
        icon: 'yuan-blue'
      }
    },
    {
      name: 'CreateClub',
      path: 'create_club',
      hidden: true,
      component: () => import('@/views/club/create/index.vue'),
      meta: {
        title: '新建社团',
        icon: 'yuan-blue'
      }
    },
    {
      name: 'CreateClubFirstCheck',
      path: 'create_club_first_check',
      component: () => import('@/views/club/createClubFirstCheck/index.vue'),
      meta: {
        roles: ['admin', 'club_first_check'],
        title: '社团成立一级审核',
        icon: 'yuan-orange'
      }
    },
    {
      name: 'CreateClubSecondCheck',
      path: 'create_club_second_check',
      component: () => import('@/views/club/createClubSecondCheck/index.vue'),
      meta: {
        roles: ['admin', 'club_second_check'],
        title: '社团成立二级审核',
        icon: 'yuan-green'
      }
    },
    {
      name: 'UpdateClub',
      path: 'update_club',
      hidden: true,
      component: () => import('@/views/club/update/index.vue'),
      meta: {
        title: '更新社团',
        icon: 'yuan-blue'
      }
    }
  ]
}
export default Router
